package com.atguigu.practice;

import java.util.Scanner;

public class TheValueOfABC {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        int[] num=new int[4];
        for(int i=0;i<4;i++){
            num[i]=scanner.nextInt();
        }
        for(int A=-500;A<500;A++){
            for(int B=-100;B<100;B++){
                for(int C=-100;C<100;C++){
                    if((A-B==num[0])&&(B-C==num[1])&&(A+B==num[2])&&(B+C==num[3])){
                        System.out.println(A+" "+B+" "+C);
                    }
                }
            }
        }
    }
}
